package com.tuling.enumdemo.pattern;

import com.tuling.enumdemo.Pizza;

/**
 * @author: chenhs
 * @date: Created in 13:53 2020/8/31
 **/
public enum PizzaDeliveryStrategy {

    EXPRESS {
        @Override
        public void deliver(Pizza pazza) {
            System.out.println("Pizza will be delivered in express mode");
        }
    },

    NORMAL {
        @Override
        public void deliver(Pizza pazza) {
            System.out.println("Pizza will be delivered in normal mode");
        }
    };

    public abstract void deliver(Pizza pazza);

}
